package com.qf.zhijia.service.impl;

import com.qf.zhijia.mapper.UserMapper;
import com.qf.zhijia.pojo.User;
import com.qf.zhijia.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Canaan
 * @version V1.0
 * @data 2020/09/05
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public void addUser(String phone) {
        User user=new User();
        user.setUPhone(phone);
        userMapper.insert(user);
    }
}
